#ifndef _N2F_RENDER_IW2D_IMAGE_H_
#define _N2F_RENDER_IW2D_IMAGE_H_

#include "..\..\core.h"
#include "..\..\Element.h"
#include "..\..\..\iw2d\h\Iw2D.h"
#include "..\..\Screen.h"

namespace N2F
{
	namespace Iw3D
	{
		class Image : public Element
		{
		public:
			Image(const ScaleFactor &scaleFactor);
			~Image();

			const char *getFile() const;
			void setFile(const char *file);

			const CIw2DImage *getImage() const;

			virtual void draw(int64 delta);
			virtual void draw(int64 delta, CIwFVec2 offset);
			virtual void draw(int64 delta, CIwFVec2 offset, float angle);
			virtual void draw(int64 delta, CIwFVec2 offset, float angle, float scale);

			virtual void OnKill();
			virtual bool isHit(CIwFVec2 point);

		protected:
			CIw2DImage *img;
			const char *file;
		};
	}
}

#endif
